package net.xinshi.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @author <a href="mailto:liukuo@xinshi.net">liukuo</a>
 * @version 1.0
 * @description
 * @since 2017/6/29.
 */
public class BasePageOutputDTO<T> extends BaseOutputDTO {
    private static final long serialVersionUID = 8931342805158308993L;

    private List<T> list = new ArrayList<T>();

    private Integer pageSize;
    private Integer currentPage;
    private Integer totalSize;


    public Integer getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(Integer totalSize) {
        this.totalSize = totalSize;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public void addList(T t){
        this.list.add(t);
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public BasePageOutputDTO() {
        super();
    }

    public BasePageOutputDTO(String code, String msg) {
        super(code,msg);
    }
}
